package com.hgyc.mom.mes.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 标签扫描VO
 * @author fwj
 * @since 2025/2/14
 */
@Data
public class CollectScanVO implements Serializable {

    /**
     * 标签条码
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String sn;

    //车间
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long workshopId;

    //产线
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long lineId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long materialId;

    /**
     * 工单号
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String workOrderCode;

    /**
     * 计划数量
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal planQty;

    /** 已完成数量 */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal completedNum;

    /**
     * 过站记录ID
     */
    private Long collectId;

    /**
     * 扫码结果 OK/NG
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String result;

    /**
     * 扫码结果编码 1成功 2条码不存在 3条码重复 4条码内容不匹配
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer resultCode;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String msg;
}
